package cn.oms.oms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("picking")
@ApiModel(value="Picking对象", description="")
public class Picking implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "捡药ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "医嘱ID")
    @TableField("orderId")
    private Integer orderId;

    @ApiModelProperty(value = "处方ID")
    @TableField("prescriptionId")
    private Integer prescriptionId;

    @ApiModelProperty(value = "患者ID")
    @TableField("patientId")
    private Integer patientId;

    @ApiModelProperty(value = "产品ID")
    @TableField("itemId")
    private Integer itemId;

    @ApiModelProperty(value = "产品详情")
    @TableField("itemDescription")
    private String itemDescription;

    @ApiModelProperty(value = "产品包装规格详情")
    @TableField("itemSpecificationDetail")
    private String itemSpecificationDetail;

    @ApiModelProperty(value = "厂家名称")
    @TableField("manufacturerName")
    private String manufacturerName;

    @ApiModelProperty(value = "国药准字号")
    @TableField("manufacturerApprovalCode")
    private String manufacturerApprovalCode;

    @ApiModelProperty(value = "原始发药量")
    @TableField("sendQty")
    private Integer sendQty;

    @ApiModelProperty(value = "捡药量")
    @TableField("pickingQty")
    private Integer pickingQty;

    @ApiModelProperty(value = "数量基本单位名称")
    @TableField("baseUnitName")
    private String baseUnitName;

    @ApiModelProperty(value = "捡药标记")
    @TableField("pickingFlag")
    private Integer pickingFlag;

    @ApiModelProperty(value = "付费标记")
    @TableField("payFlag")
    private Integer payFlag;

    @ApiModelProperty(value = "发药标记")
    @TableField("sendFlag")
    private Integer sendFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("deleteFlag")
    private Integer deleteFlag;


    /**
     * 当前问题包含的标签集合
     */
    //这个属性没有对应的列,需要使用下面的注解表示,否则数据库操作会报错
    @TableField(exist = false)
    private String returnPatientName;


    /**
     * 当前问题包含的标签集合
     */
    //这个属性没有对应的列,需要使用下面的注解表示,否则数据库操作会报错
    @TableField(exist = false)
    private String returnCreateTime;
}
